import 'package:firstdemo/example/ExpansionTileEx.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:firstdemo/example/AnimatedListEx.dart';
import 'package:firstdemo/example/AppBarBottomSample.dart';
import 'package:firstdemo/example/PopupMenuEx.dart';
import 'package:firstdemo/example/ExampleEx.dart';

class ExampleEx extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('示例目录'),),
      body: ListView(
        children: [
          ListTile(title: Text('AnimatedList 列表动画'),onTap: (){
            Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context){
              return AnimatedListSample();
            }));
    }),
          ListTile(title: Text('自定义底部widget的AppBar'),onTap: (){
            Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context){
              return AppBarBottomSample();
            }));
          }),
          ListTile(title: Text('溢出菜单'),onTap: (){
            Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context){
              return PopupMenuEx();
            }));
          }),
          ListTile(title: Text('多级列表'),onTap: (){
            Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context){
              return ExpansionTileEx();
            }));
          }),
        ],
      ),
    );
  }
}